Normal Light
Light up the image using normal mapping.
Node Data | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Display name | |||||||||||||||||||||||||||||||||||
Normal Light | |||||||||||||||||||||||||||||||||||
Internal name | |||||||||||||||||||||||||||||||||||
Node_Normal_Light | |||||||||||||||||||||||||||||||||||
Inheritances | |||||||||||||||||||||||||||||||||||
| Node_Processor | |||||||||||||||||||||||||||||||||||
| Node_Normal_Light | |||||||||||||||||||||||||||||||||||
Inputs | |||||||||||||||||||||||||||||||||||
Input | |||||||||||||||||||||||||||||||||||
surface |
Surface In |
||||||||||||||||||||||||||||||||||
surface |
Normal Map |
||||||||||||||||||||||||||||||||||
color |
Ambient |
||||||||||||||||||||||||||||||||||
bool |
Keep Alpha |
||||||||||||||||||||||||||||||||||
Heightmap | |||||||||||||||||||||||||||||||||||
surface |
Height Map |
||||||||||||||||||||||||||||||||||
float |
Height |
||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
Outputs | |||||||||||||||||||||||||||||||||||
surface |
Surface Out |
||||||||||||||||||||||||||||||||||
surface |
Light Only |
||||||||||||||||||||||||||||||||||
Attributes | |||||||||||||||||||||||||||||||||||
| Color Depth | |||||||||||||||||||||||||||||||||||

Add lighting to the surface using normal map to control ray reflection.

Properties
| Input | |
| Ambient | Base color without any light. |
| Keep Alpha | Use input opacity. |
| Shape | |
| Type | Light type |
| Position | Light position |
| Distance | Light distance away from the surface. |
| Range | Light radius |
| Light | |
| Intensity | Light brightness |
| Color | Light color |
| - Attenuation | |
| Attenuation | How the light will fade away over distance |
| - Banding | |
| Radial Banding | Creating light band around point source. |
| Radial Start | Shift light band angle. |
| Radial Band Ratio | Ratio of light band. |
| Radial Shadow | Darkness level of the light outside the band. |
| Banding | Discretize intensity to fixed level. |
Commit History
| 1.21.6.007 |
|
|---|---|
| 1.21.6.005 |
|
Related Links
- Base Code: /scripts/node_normal_light/node_normal_light.gml
- Shader [sh_normal_light_apply]: /shaders/sh_normal_light_apply/sh_normal_light_apply.fsh
- Shader [sh_normal_light]: /shaders/sh_normal_light/sh_normal_light.fsh